﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Collections.ObjectModel;



namespace Weather3.DataModel
{
    /// <summary>
    /// 城市类
    /// </summary>
    class WeatherCitys:INotifyPropertyChanged
    {
        private string _guid;
        public string CGuid
        {
            get { return _guid; }
            set { _guid = value; CP("CGuid"); }
        }

        private string _cityName;
        public string  CityName 
        {
            get { return _cityName; }
            set { _cityName = value; CP("CityName"); }
        }

        private void CP(string p)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(p));
        }


        public event PropertyChangedEventHandler PropertyChanged;

       // public ObservableCollection<WeatherCitys> Citys { get; set; }
    }

   
}
